package com.lezhi.socialgram.mapper.friend;

import com.lezhi.socialgram.model.friend.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by daizhen on 2017/4/5.
 */
@Mapper
public interface FriendMapper {

    int createMyLike(@Param("table") String table);

    int createLikeMe(@Param("table") String table);

    int createFriend(@Param("table") String table);

    int insertMyLike(MyLike myLike);

    int insertLikeMe(LikeMe likeMe);

    int insertFriend(Friend friend);

    int insertBlackList(Black black);

    MyLike queryMyLikeById(MyLike myLike);

    LikeMe queryLikeMeById(LikeMe likeMe);

    List<MyLike> queryMyLike(MyLike myLike);

    List<LikeMe> queryLikeMe(LikeMe likeMe);

    List<Long> queryFriendList(Friend friend);

    List<Black> queryMyBlackList(Black black);

    IUser queryUserById(IUser iUser);
}
